define([
        'jquery'
   
        ], function ($){


	
	var MainView = function() {};
	
	MainView.prototype = {
			drawing : function(res,mainController) {		
		
				var $mainDiv = $('#main');
				$mainDiv.html("");
				$mainDiv.append("<h1>메인 페이지</h1>");
				$mainDiv.append(res+"님, 환영합니다!");
				
				var $updateFormDiv = $('<form id = "updateForm"></form>');
				$mainDiv.append($updateFormDiv[0]);
				
				this.$input1 = $('<input>',{type : "button", value : "회원정보 수정", class : "button"}).appendTo($updateFormDiv);
			
				this.$input2 = $('<input>',{type : "button", value : '로그아웃', class : "button"}).appendTo($updateFormDiv);
			
				this.$input3 = $('<input>',{type : "button", value : '회원탈퇴', class : "button"}).appendTo($updateFormDiv);
			
				this.$input4 = $('<input>',{type : "button", value : '메 모', class : "button"}).appendTo($updateFormDiv);
			
			},
			setUpdateEvent : function(func) {
				
				this.$input1.on('click', func);
			},
			
			setLogoutEvent : function(func) {
				
				this.$input2.on('click', func);
			},
			setRemoveEvent : function(func) {
				
				this.$input3.on('click', func);
			},
			setMemoEvent : function(func) {
				
				this.$input4.on('click', func);
			}
	};
	
	
	
	
	return	MainView;
	
});
